#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTextEdit>
#include <mdichild.h>
#include <QMdiSubWindow>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    MdiChild* createMdiChild();
    bool loadFile(const QString& file);
    MdiChild* activeMdiChild();
    QMdiSubWindow* findMdiChild(const QString &fileName);
    void setActiveSubWindow(QWidget *window);

private slots:
    void on_actionNew_Python_module_triggered();

    void on_actionOpen_triggered();

    void on_actionSave_triggered();

    void on_actionSave_as_triggered();

    void on_actionClose_triggered();

    void on_actionClose_all_triggered();

    void on_actionSave_all_triggered();

    void on_actionExit_triggered();

    void on_actionCut_triggered();

    void on_actionCopy_triggered();

    void on_actionPaste_triggered();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
